package com.springcloud.sc.ucpv5.client.module.map;

public class MapGpsDataInfo {
	public static int MapGpsShowInfo_Type_Car = 0;
	public static int MapGpsShowInfo_Type_HangBan = 1;
	public static int MapGpsShowInfo_Type_Log = 2;
	public static int MapGpsShowInfo_Type_Location = 3;
	public static int MapGpsShowInfo_Type_Fence = 4;

	public static int MapGpsShowInfo_OperationType_Add = 0;
	public static int MapGpsShowInfo_OperationType_Mod = 1;
	public static int MapGpsShowInfo_OperationType_Del = 2;

	//
	public String key;

	// 描述
	public String title;

	// 详细title
	public String show_info;

	//
	public int show_type = -1;

	public int operation_type = -1;

	// 图片
	public String image;

	// 经度
	public double latitude;

	// 纬度
	public double longitude;

	// 速度
	public double speed;

	// 方向
	public int direct;

	// 高度
	public double hight;

	// 起始时间
	public long time_begin;

	// 结束时间
	public long time_end;


	public boolean equals(Object arg0) {
		MapGpsDataInfo card = (MapGpsDataInfo) arg0;

		if (card.key == null || "".equals(card.key)) {
			return false;
		}

		if (card.key.equals(key)) {
			return true;
		}
		return false;
	}


	public int hashCode() {
		return key.hashCode() >> 999;
	}
}
